package com.iot.ht.controller.htsys;

import com.iot.core.annotation.Auth;
import com.iot.core.annotation.Log;
import com.iot.core.data.BasePageDtQto;
import com.iot.core.data.entity.HtError;
import com.iot.core.data.mapper.HtErrorMapper;
import com.iot.core.enums.AuthType;
import com.iot.core.util.MyDateTime;
import com.mybatisflex.core.paginate.Page;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.util.StringUtils;
import org.springframework.web.bind.annotation.*;

import java.lang.reflect.Method;

import static com.iot.core.data.entity.table.HtErrorTableDef.HT_ERROR;

@Slf4j
@RestController
@RequestMapping("/htsys")
@Tag(name = "系统", description = "")
public class HtSysController {

    @Auth(authType = AuthType.None)
    @Log(logNeed = false,logTemplete ="",logPin = true,logPout = true)
    @RequestMapping(value="/now",method={RequestMethod.GET,RequestMethod.POST})
    @Operation(summary = "当前时间", description = "")
    public String now( )   {
         return MyDateTime.now();
    }


}
